include config.mk

dir_y:=

# ifeq ($(LED_CTRL), y)
# 	dir_y += led_control
# endif

# ifeq ($(LED_CTRL), y)
# 	dir_y += server
# endif

# ifeq ($(LED_CTRL), y)
# 	dir_y += client
# endif

# ifeq ($(LED_CTRL), y)
# 	dir_y += UI
# endif

ifeq ($(LED_CTRL), y)
	dir_y += Threads
endif

# ifeq ($(LED_CTRL), y)
# 	dir_y += AV_Capture
# endif
 
# ifeq ($(LED_CTRL), y)
# 	dir_y += uart
# endif

all:
	@for i in $(dir_y); \
	do \
		$(MAKE) -C $$i; \
		if [ $$? -ne 0 ];then exit 1; fi \
	done

install:
	@for i in $(dir_y); \
	do \
		$(MAKE) -C $$i install; \
	done

clean:
	@for i in $(dir_y); \
	do \
		$(MAKE) -C $$i clean; \
	done

demo:
	$(MAKE) -C demo


.PHONY: all install clean image demo
